package com.lw.creational.builder;

import com.lw.creational.builder.burger.ChickenBurger;
import com.lw.creational.builder.burger.VegBurger;
import com.lw.creational.builder.coldDrink.Coke;
import com.lw.creational.builder.coldDrink.Pepsi;

//最后进行分类建造
public class MealBuilder {
 
   public Meal prepareVegMeal (){//准备素食餐
      Meal meal = new Meal();
      meal.addItem(new VegBurger());
      meal.addItem(new Coke());
      return meal;
   }   
 
   public Meal prepareNonVegMeal (){//准备非素食餐
      Meal meal = new Meal();
      meal.addItem(new ChickenBurger());
      meal.addItem(new Pepsi());
      return meal;
   }
}